package com.wsc.it.bridge.push.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wsc.it.bridge.push.service.PushService;

@RestController
@RequestMapping({"/bridge/push"})
public class PushController {
  @Autowired
  private PushService pushService;
  
  /**
   *捷顺 Login 获取Token
   * @param request
   * @param response
   */
  @RequestMapping({"/jieshun/login"})
  public void pushJieShunLogin(HttpServletRequest request, HttpServletResponse response) {
    this.pushService.pushJieShunLogin(request, response);
  }
  
  /**
   *捷顺接口
   * @param request
   * @param response
   */
  @RequestMapping({"/jieshun/as"})
  public void pushJieShunAs(HttpServletRequest request, HttpServletResponse response) {
    this.pushService.pushJieShunAs(request, response);
  }
  
  
  
  @RequestMapping({"/jieshun/test"})
  public String pushJieShunAsTest(HttpServletRequest request, HttpServletResponse response) throws Exception {
    return this.pushService.pushJieShunAsTest(request, response);
  }
  
  
  
}
